package com.example.dao;

import com.example.entity.DogWalking;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DogWalkingDao {
    int insertService(DogWalking service);
    List<DogWalking> getAvailableServices();
    List<DogWalking> getServicesByProvider(int providerId);
    List<DogWalking> getServicesByRequester(int requesterId);
    int updateServiceStatus(@Param("serviceId") int serviceId,
                            @Param("requesterId") int requesterId,
                            @Param("status") int status);
    DogWalking getServiceById(int serviceId);
    String getContactPhoneByProviderId(int providerId);

    DogWalking getServiceDetailsWithUserAndPet(int serviceId);

    DogWalking findServiceById(Integer serviceId);

    int updateService(DogWalking service);
}
